<template>
    <el-rate v-model="scope.row[prop]" allow-half :show-text="nodeItem.texts" :colors="getColors" disabled :texts="getTexts"></el-rate>
</template>
<script setup>
const props = defineProps({
    scope: {
        type: Object,
        defalut: {}
    },
    prop:{
        type:String,
        defalut:''
    },
    nodeItem: {
        type: Object,
        defalut: {}
    }
})
const getColors = ()=>{
    return nodeItem.colors.split(',')
}
const getTexts = () =>{
    return nodeItem.texts.split(',')
}
</script>